package day05;

/**
 * 测试Person
 */
public class Test01 {
    public static void main(String[] args) {
        Person p = new Person("大Q");//通过new关键字创建对象
        System.out.println(p.name);
       /* p.id = "140829202311140015";
        p.name = "小Q";
        p.age = 0;
        p.sex = true;
        System.out.println(p);
        p.eat();
        p.sleep();*/

        Person p2 = new Person("刘备",45,true);
        System.out.println(p2);
        p2.eat();

    }
}
